export default function(
    state = {
        playlist: {
            coverImgUrl: "",
            name: "",
            creator: { nickname: "", playCount: 0 },
            tracks: [
                {
                    name: "",
                    ar: [{ name: "1" }, { name: "1" }],
                    al: { picUrl: "" }
                }
            ]
        }
    },
    action
) {
    switch (action.type) {
        case "SET_PRODUCTS":
            return action.payload;
        default:
            return state;
    }
}
